package com.jxc.model.po;

/***********************************************************************
 * Module:  PointUsedRecord.java
 * Author:  Administrator
 * Purpose: Defines the Class PointUsedRecord
 ***********************************************************************/

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 积分使用记录
 * 
 * @pdOid 5cb21db3-8763-45bc-b4b3-1a9ffd6a23ee
 */
@Entity
@Table(name = "HYGL_POINT_USED_RECORD")
public class PointUsedRecord extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3776207427144951727L;
	/**
	 * 会员
	 * 
	 * @pdOid ad494427-58b7-4746-be15-399bb68b95ec
	 */
	private Member member;
	/**
	 * 使用积分数
	 * 
	 * @pdOid 9ba1c950-07e6-4338-9459-07219ba0b71d
	 */
	private Integer num;
	/**
	 * 使用日期
	 * 
	 * @pdOid 462e53e4-a233-400b-9505-621bfa17099a
	 */
	private Date date;
	/**
	 * 销售单
	 * 
	 * @pdOid 0dc7e12e-29b7-4d0a-965f-9107fef539a5
	 */
	private Salelist salelist;
	/**
	 * 备注
	 * 
	 */
	private String remark;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "MEMBER_ID")
	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	@Column(name = "NUM", length = 10)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Column(name = "DATE")
	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "SALELIST_ID")
	public Salelist getSalelist() {
		return salelist;
	}

	public void setSalelist(Salelist salelist) {
		this.salelist = salelist;
	}

}